package com.xiaomimall.front.Describes;

import com.xiaomi.front.dao.Describes.DescribesDao;
import com.xiaomi.pojo.Describes;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class Descr {
    private ApplicationContext context ;

    @Before
    public void init() {
        context = new ClassPathXmlApplicationContext("spring-config-all.xml") ;
    }

    @Test
    public void GetCollectin(){
        List<Describes> describes=context.getBean(DescribesDao.class).GetAllRecommend();
        System.out.println(describes.toString());
    }
}
